<div class="list-group-item d-flex justify-content-between align-items-center">
    <div>
        <img src="{{$user->getAvatar()}}" alt="{{$user->name}}" width="60" class="img-thumbnail px-2">
        <a class="px-2 text-decoration-none" href="{{route('users.show',$user->id)}}">{{$user->name}}</a>
    </div>
    @can('destroy',$user)
    <form action="{{route('users.destroy',$user->id)}}" method="POST" onsubmit="return confirm('您真的要删除吗？')">
        {{method_field('DELETE')}}
        @csrf
        <button class="btn btn-danger btn-sm">删除</button>
    </form>
    @endcan
</div>
